home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_07
/
9n07096c
< prev
next >
Wrap
Text File
|
1991-05-26
|
614b
|
29 lines
Display *display;
XEvent event;
XNextEvent( display, &event );
switch( event.type )
{
case ButtonPress:
break;
case Expose:
/*
* Only redraw when all
* Expose events are in
*/
if ( event.xexpose.count == 0 )
{
/* ... */
}
break;
case KeyPress:
/*
* Handle keyboard input
*/
break;
}